package com.coffee.sku.service.inquire.dao;

import com.coffee.sku.api.inquire.query.InquireSkuPriceTrendQuery;
import com.coffee.sku.service.inquire.bean.InquireSkuPriceTrend;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InquireSkuPriceTrendDao {
	public InquireSkuPriceTrend findById(Integer id);
	
	public InquireSkuPriceTrend findByIdForUpdate(Integer id);
	
	public List<InquireSkuPriceTrend> findByIds(@Param("idList") List<Integer> idList);

	public Integer count(@Param("param") InquireSkuPriceTrendQuery param);

	public List<InquireSkuPriceTrend> page(@Param("param") InquireSkuPriceTrendQuery param, @Param("offset") Integer offset, @Param("rows") Integer rows);

	public List<InquireSkuPriceTrend> agvPrice(@Param("param") InquireSkuPriceTrendQuery param);

	public InquireSkuPriceTrend findFirst(@Param("param") InquireSkuPriceTrendQuery param);

	public Integer insert(InquireSkuPriceTrend param);

	Integer insertBatch(List<InquireSkuPriceTrend> list);

	public void updateById(@Param("param") InquireSkuPriceTrend param);
	
	public Integer deleteById(@Param("id")Integer id,@Param("supplierId")Integer supplierId);
	
	public Integer deleteByIds(List<Integer> idList);
	
}